<?

//Initiate Authenticate
SecurityRedirect ();

//initiate Vars 
define("PRIMARY_KEY","kurssi_id");
$KEY[]         = array("PRIMARY_KEY"=>PRIMARY_KEY);
$FileName      = "ais_transaction_freecalc.php";
$FileTemplate  = "ais_transaction_freecalc_form.html";
$TableName     = "tbltoolcalc";
$SubHeaderTitle= "Transaction Tools Calculator";
$PageSize      = 10;
$HTMLGridForm  = "CalcForm";
//************ FORM ACTION **************

$FormDesc  = GetParam("desc","");
$FormTotal = GetParam("total","");
$FormName  = GetParam("formname","");
$IncludePPN = GetParam("inc_ppn","");

//Initiate Database Table For Search;
$Verification  = "False";
$SessionVar    = md5(microtime());
//$SessionVar    = "Stuck";

$InitFunction = "Masking();";
$Masking = BuildMasking ($HTMLGridForm,array("tarif"=>"number","total"=>"number"));
$JSMasks  = $Masking;
Init($SessionVar,$JSMasks);

//******* DATABASE FORM QUERY ***********

//Select Tools calculator
$SQLTools = "SELECT * FROM $TableName";

//******* SHOW FORM CONTENT *********

$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate($MOD_TEMPLATE_DIR."/".$FileTemplate);
$TBS->MergeBlock("actblk",$DBMysql,$SQLTools);
$TBS->Show();

?>
